<%@page import="dier.xuanke"%>
<%@page import="dier.Lesson"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

         <title>用户查询页面</title>

</head>
<style type="text/css">
   div {
    margin: 200px 550px;
   }
   p {
    display: inline;
   }
   
   h2 {
    text-align: center;
    color: blue;
   }
   .xx{
    height: 1000px;
    width: 500;
    
   }
   
   .ys {
   Font-size:25px;
    color: green;
   }
 </style>
  <body>
 <div class="xx">
<form method="get" action="StuxuankeXiangxi.jsp">
<table border="1" width="500" cellspacing="0">
           <caption>课程目录</caption>
     <tr>
           <th>课程名称</th>
           <th>任课教师</th>
           <th>所属学院</th>
           <th>详细信息</th>
    </tr>
    <% int i=0;
    int arr[]=new int[10];
    xuanke xk=new xuanke();
    arr=xk.findallkecheng();
    while(arr[i]!=0)
    { 
    	Lesson ls=new Lesson();
    	ls=xk.showkecheng(arr[i]);
    %>
    <tr>
           <td><% out.print(ls.Cname);%></td>
           <td><% out.print(ls.CTename);%></td>
           <td><% out.print(ls.CClass);%></td>
			<td>
			<input type="hidden" name="Name" value="王磊">
			 <button name="tid" value=<%=arr[i]%> type="submit">显示</button></td>
   </tr>
   <%i++;
  		 } %>
</table>
</form>
 </div>
 </body>
 </html>
 